<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Happy - DTAC Prepaid Phone::</title>
<link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/global-en.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css">
<script language=JavaScript>
function printWindow(){
browserVersion = parseInt(navigator.appVersion)
if (browserVersion >= 4) window.print()
}

function include(xUrl,xId) {
  var xmlhttp = false;
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)

  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
   }

  /*@end @*/
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("GET", xUrl,true);
  xmlhttp.onreadystatechange=function() {
          if (xmlhttp.readyState==4) {
                document.getElementById(xId).innerHTML = xmlhttp.responseText;
          }
  }
  xmlhttp.send(null)
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
var specialNoFormate = "08-xxxx-xxxx";
var ERROR_SUBR_NUMB_FORMATE = "Sorry. Special number has to start with 0 and must be 10 digits.<br>Pls. try again." ;
var ERROR_SUBR_NUMB_DUPLICATE = "Sorry. You have chosen the same number as your existing one.<br>Pls. try again";
var ERROR_SUBR_NUMB_DUPLICATE2 = "Sorry. The number that you selected is your own number.<br>Pls. try again";
var ERROR_DTAC_NUMB_ONLY = "Sorry. The special number that you have selected is not DTAC number.<br>Pls. try again."
//var ERROR_NOT_HAVE_AUTHORIZED = "Sorry, your number is not allowed to select special number.";
var ERROR_NOT_HAVE_AUTHORIZED = "Sorry, your number is not applicable to this service. Please apply for Happy Special Number promotion via *1003.";
var ERROR_IS_BLOCK_PACK_CATG_44 = "Sorry, Your number is not allowed to select special number.";
var ERROR_IS_BLOCK_PACK_CATG_78 = "Sorry, Your number is not allowed to select special number.";
var ERROR_CREDIT_INADEQUATE = "Sorry, you are not allowed to add or change special number. You don't have enough balance.";
var INVALID_SUBR_NUMB = "Invalid subscriber status.<br>Pls. try again.";
var ERROR_FORM;
var msgRow;
var bttnRow;
var msg;

function informationDialog(msgParam,  w, h, bttnFunc){
//function informationDialog(msg,  w, h, bttnFunc){
   if( w == "") w=400;
   if(h == "") h=200;
   var l = (screen.width - w) / 2; 
   var t = (screen.height - h ) / 2;

   /*For window.showModalDialog()*/
   /*var argObj= new Object();
   argObj.msgRow = msgParam;
   argObj.bttnRow =   "<input type='image' src='${RESOURCE}/eng/images/14_webservice_submit.gif' onclick='javascript: returnOk();' >";                
   return window.showModalDialog("/bp3/bin/DpromptShowMSG", argObj, "dialogHeight:"+h+"px;dialogWidth:"+w+"px;scroll:yes;status:no;help:no;resizable:no");  
   */
   
   /*For window.open()*/ 
   if( bttnFunc == "") bttnFunc="returnOk();";
   msgRow = msgParam;   
   bttnRow =   "<input type='image' src='${RESOURCE}/eng/images/14_webservice_submit.gif' onclick='javascript: "+bttnFunc+"' >";      
   ERROR_FORM = window.open("/bp3/bin/DpromptShowMSG","tinyWindow", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);              
}
function confirmDialog(msgParam,  w, h){
   if( w == "") w=400;
   if(h == "") h=200;
   
   w = 375;
   h = 240;
   var l = (screen.width - w) / 2; 
   var t = (screen.height - h ) / 2;

   /*For window.showModalDialog*/
   /*var argObj= new Object();
   argObj.msgRow = msgParam;
   argObj.bttnRow    = " <input type='image' src='${RESOURCE}/eng/images/14_webservice_submit.gif' onclick='javascript: returnOk();' >";                
   argObj.bttnRow += " &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='image' src='${RESOURCE}/eng/images/14_webservice_cancel.gif' onclick='javascript: returnCancel();' >";                
   return window.showModalDialog("/bp3/bin/DpromptShowMSG", argObj, "dialogHeight:"+h+"px;dialogWidth:"+w+"px;scroll:yes;status:no;help:no;resizable:no");  
   */

   /*For window.open*/
   /*
   msgRow = msgParam;
   bttnRow    = " <input type='image' src='${RESOURCE}/eng/images/14_webservice_submit.gif' onclick='javascript: window.close(); window.opener.document.form1.submit();' >";                
   bttnRow += " &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='image' src='${RESOURCE}/eng/images/14_webservice_cancel.gif' onclick='javascript: returnCancel();' >";                
   */
   msg = msgParam

   //window.open("/bp3/bin/confirm?lang=E&msg="+msg,"tinyWindow", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);   
   document.forms[0].hdConfirmMsg.value = msg;
   window.open("/bp3/bin/confirm?lang=E&mode=N", "tinyWindow", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);   

}
function cancelAdd(){            
         var d = document.form1;
         d.txtEditSpecialNo.value = "";
         document.getElementById ("tbShowDTACFlagOnly").style.display="none";
         document.getElementById ("tbEditFee").style.display="none";
         document.getElementById ("tbAddFee").style.display="none";
         document.getElementById ("tbEditSpecialNo").style.display="none";	        
         document.getElementById ("tbAddSpecialNoBtn").style.display="none";	
         document.getElementById ("tbEditSpecialNoBtn").style.display="none";	
         
         d.ExistNo.value = "";
         d.NewNo.value = "";     		 
}
function showAddSpecialNo(itemId){
         var d = document.form1;			
         document.getElementById ("tbShowDTACFlagOnly").style.display="";
         document.getElementById ("tbEditFee").style.display="none";
         document.getElementById ("tbAddFee").style.display="";						
         document.getElementById ("tbEditSpecialNo").style.display="";					
         document.getElementById ("tbEditSpecialNoBtn").style.display="none";	
         document.getElementById ("tbAddSpecialNoBtn").style.display="";		
         d.txtEditSpecialNo.value =  getExistNo(itemId);
         d.selectedRow.value = itemId;
         d.txtEditSpecialNo.focus();
}
function showEditSpecialNo(itemId){
         var d = document.form1;			
         document.getElementById ("tbShowDTACFlagOnly").style.display="";
         document.getElementById ("tbEditFee").style.display="";
         document.getElementById ("tbAddFee").style.display="none";						
         document.getElementById ("tbEditSpecialNo").style.display="";		
         document.getElementById ("tbEditSpecialNoBtn").style.display="";	
         document.getElementById ("tbAddSpecialNoBtn").style.display="none";			
         d.txtEditSpecialNo.value =  getExistNo(itemId);
         d.selectedRow.value = itemId;
         d.txtEditSpecialNo.focus();
}

function addSpecialNo(){
         var d = document.form1;			             			
         var newNo = d.txtEditSpecialNo.value;			
         if( ! checkSubrNumbFormate(newNo) || isDuplicateNo(newNo) || isYourSubrNumb(newNo) ){
            d.txtEditSpecialNo.value = Trim(d.txtEditSpecialNo.value);
            d.txtEditSpecialNo.focus();
            if (ERROR_FORM.focus) {ERROR_FORM.focus()}
         }else{
            var newNo = d.txtEditSpecialNo.value;
            var  confirmMsg = "<br><div align=center><span class='textnormal'>You want to add </span><span class='textnormalred'>" +  newNo + "<\span><span class='textnormal'> to your special number.";
            <!--SVLT.LOOP:SHOW_FREE-->
            confirmMsg += "<br>Adding special number fee is </span><span class='textnormalred'><!--SVLT.VAR:FEE_AMN--></span><span class='textnormal'> baht / special number";
            <!--SVLT.END:SHOW_FREE-->            
            confirmMsg += "<br><br>You will be able to call special number with special rate<br>after getting SMS confirmation from DTAC.</span></div>";
            confirmMsg += "<br><div align='center'><span class='textnormal'>Press ok to confirm your transaction.</span></dev><br><br>";

            d.ExistNo.value = "";
            d.NewNo.value = newNo; 
            d.action="/bp3/bin/Dspc/DpromptSpecialNo";
            d.txtEditSpecialNo.focus();
            confirmDialog(confirmMsg,  "500", "220");            
         }
}
function editSpecialNo(){
         var d = document.form1;			             
         var newNo = d.txtEditSpecialNo.value;						 
         if( ! checkSubrNumbFormate(newNo) || isDuplicateNo(newNo) || isYourSubrNumb(newNo) ){
            d.txtEditSpecialNo.value = Trim(d.txtEditSpecialNo.value);
            d.txtEditSpecialNo.focus();
            if (ERROR_FORM.focus) {ERROR_FORM.focus()}

         }else{
            var newNo = d.txtEditSpecialNo.value;
            var existNo = getExistNo( d.selectedRow.value );
            var  confirmMsg = "<br><div align=center><span class='textnormal'>You want to change your special number ";
            confirmMsg += " from </span><span class='textnormalred'>" + existNo + "<\span><span class='textnormal'> to </span><spanclass='textnormalred'>" + newNo + "</span><span class='textnormal'>";
            <!--SVLT.LOOP:SHOW_FREE-->
            confirmMsg += "<br>Changing special number fee is </span><span class='textnormalred'><!--SVLT.VAR:FEE_AMN--></span><span class='textnormal'> baht / special number";                           
            <!--SVLT.END:SHOW_FREE-->            
            confirmMsg += "<br><br>You will be able to call special number with special rate after getting SMS confirmation from DTAC. </span></div>";
            confirmMsg += "<br><div align='center'><span class='textnormal'>Press ok to confirm your transaction.</span></dev><br><br>";

            d.ExistNo.value = existNo;
            d.NewNo.value = newNo;   
            d.action="/bp3/bin/Dspc/DpromptSpecialNo";                   
            d.txtEditSpecialNo.focus();

            confirmDialog(confirmMsg,  "500", "220"); 
         }
}
function checkSubrNumbFormate(subrNumb){
   var sPat = /^[0][0-9]{8,9}$/;
<!--SVLT.LOOP:DTAC_ONLY_FLAG-->
   sPat = /^[0][0-9]{9}$/;
<!--SVLT.END:DTAC_ONLY_FLAG-->
   
   if( Trim(subrNumb).length==0 ||  !sPat.test(subrNumb)){         				 
       informationDialog(ERROR_SUBR_NUMB_FORMATE, "" ,"", "" );
       return false;
   }else{
       return true;
   }
}
function isDuplicateNo(newNo){
   var d = document.form1;                  
   var selectedRow = d.selectedRow.value;			
   var exitsNo = getExistNo(selectedRow);

   if(newNo == exitsNo){
      informationDialog(ERROR_SUBR_NUMB_DUPLICATE, "", "", "");
      return true;
   }else if( d.specialNo.length != null ) {				    
      for(i=0;i<d.specialNo.length; i++){
         exitsNo =  d.specialNo[i].value;
         if( exitsNo.length>0 && (newNo == exitsNo) ){
            informationDialog(ERROR_SUBR_NUMB_DUPLICATE, "", "", "");
            return true;
         }
      }
   }
   return false;
}
function isYourSubrNumb(newNo){
   var d = document.form1;                  
   var selectedRow = d.selectedRow.value;			
   var exitsNo = getExistNo(selectedRow);
   var yourSubrNumb = "<!--SVLT.VAR:subrNumb08-->";

   if(yourSubrNumb == newNo){
     informationDialog(ERROR_SUBR_NUMB_DUPLICATE2, "", "", "");
     return true;  
   }
   return false;
}
function getExistNo(itemId){
   var d = document.form1;
   var existNo="";
   if(d.specialNo.length==null){  
      existNo =  d.specialNo.value;
   }else{   
      existNo =  d.specialNo[itemId-1].value;  
   }				
   return existNo;
}
function gotoWelcome(){
   window.location = "/bp3/bin/Dspc/DpromptWelcome";   		
}
function LTrim(str){
   for(var i=0;str.charAt(i)==" ";i++);
       return str.substring(i,str.length);
}
function RTrim(str){
   for(var i=str.length-1;str.charAt(i)==" ";i--);
   return str.substring(0,i+1);
}
function Trim(str){return LTrim(RTrim(str));}

<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


// Declaring required variables
var digits = "0123456789";

// non-digit characters which are allowed in phone numbers
var phoneNumberDelimiters = "()- ";

// characters which are allowed in international phone numbers
// (a leading + is OK)
var validWorldPhoneChars = phoneNumberDelimiters + "+";

// Minimum no of digits in an international phone no.
var minDigitsInIPhoneNumber = 10;

function isInteger(s)
{   var i;
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }

    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag)
{   var i;
    var returnString = "";

    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }

    return returnString;
}

function checkInternationalPhone(strPhone){
	s = stripCharsInBag(strPhone,validWorldPhoneChars);
	return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);
}

function ValidateForm(){
	var Phone=document.form1.inputUserName;

	document.form1.submit();
 }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function alertChgMobileNumb(){
  var format = /^[0-9]{9}$/;
   
  if(format.test(document.form1.inputUserName.value)) { 
			alert("ตั้งแต่วันที่ 1 กันยายน เป็นต้นไป รหัสผู้ใช้ 9 หลัก จะเปลี่ยนเป็น 10 หลัก โดยใส่ 08 แทน 0 ตัวหน้า \nในครั้งต่อไปกรุณาใช้รหัสผู้ใช้ 10 หลักในการใช้บริการผ่านเว็บ.");
	}

	document.form1.submit();
}
//-->
</script> 
</head>
<body>
<div id="header">
    <%@include file="../head.jsp" %>
</div>

<div id="container">
	<div id="pathway">
	<A href="/bp3/bin/DpromptIndex" class="link2">Web Service</A> &gt; 
	<a href="/bp3/bin/Dspc/DpromptWelcome"  class="link2">Profile and Service</a> &gt;  
	Special No
	</div>
	<div id="main">
    	<%@ include file="../menu.jsp" %>
    	<div id="content">
        	<div class="content-middle">
                
                <!--เนื้อหาเริ่มที่นี่-->
                <h3><img src="${RESOURCE}/eng/images/14_webservice_head01.gif"></h3>
               	<table width="100%" cellpadding="2" cellspacing="2" height="500">
                  	<tr>
                    	<td valign="top">
						
						
						<div align="center">
						
						
<form name="form1" method="post">
<input type="hidden" name="hdConfirmMsg" value="">
<input type="hidden" name="ExistNo" value="">
<input type="hidden" name="NewNo" value="">
<input name="func" type="hidden" id="func">
<!--input type="hidden" name="subrNumb" value="<!--SVLT.VAR:HiddenSubrNumb-->"-->
 
<table width="650" border="0" cellspacing="0" cellpadding="0">
  <!--SVLT.VAR:CONF_TOP-->
  <tr> 
    <td> <table width="100%" border="0" cellspacing="3" cellpadding="0">
        <tr> 
          <td width="2%"><img src="${RESOURCE}/eng/images/14_webservice_bullet01.gif" width="9" height="9"></td>
          <td width="98%" class="textnormal_bold"><img src="${RESOURCE}/eng/images/14_webservice_subtitle05.gif" width="350" height="22"></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td class="textnormal">Check, add and change your happy special numbers.</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="15" align="center"><br>
    <br>
    <br></td>
  </tr>
  <tr> 
    <td height="7" align="center"><table width="80%" border="0" align="center" cellpadding="2" cellspacing="5">
      <tr>
        <td width="45%" align="right" class="textnormal_bold">Your Current Promotion :</td>
        <td align="left" class="textnormalred"><!--SVLT.VAR:packDesc--> </td>
      </tr>
      <tr>
        <td align="right" class="textnormal_bold">Your Special Number Package :</td>
        <td align="left" class="textnormalred"><!--SVLT.VAR:MAXIMUM_SPECIAL_NO--> number</td>
      </tr>
      <tr>
        <td align="right" class="textnormal_bold">&nbsp;</td>
        <td align="left"><a href="#"></a></td>
      </tr>

    </table>    
    <br></td>
  </tr>
  <tr>
    <td height="8" align="center" bgcolor="#FAF9F4"><table width="80%" border="0" align="center" cellpadding="2" cellspacing="5">
      <tr>
        <td width="45%" height="30" align="left" class="textnormal_bold">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Currently, you have <span class="textnormalred"> <!--SVLT.VAR:EXIST_SPECIAL_NO--> </span> special number (s).</td>
        </tr>
      <tr>
        <td align="center" class="textnormal_bold"><table width="90%" border="0" cellpadding="0" cellspacing="1" bgcolor="#999999">
          <tr bgcolor="#0099CC">
            <td width="50" height="30" align="center" bgcolor="#FF0000"><span class="textnormalwhite"><strong>Item No.</strong></span></td>
            <td height="30" align="center" bgcolor="#FF0000" class="textnormalwhite"><strong>Special Number</strong></td>
            <td width="100" height="30" align="center" bgcolor="#FF0000">&nbsp;</td>
          </tr>
              
          <!--SVLT.LOOP:EXIST_SPECIAL_NO_LIST-->
          <tr class="textnormal" bgcolor="#FAF9F4">
            <td align="center"><!--SVLT.VAR:NO--></td>
            <td>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <!--SVLT.VAR:SUBR_NUMB_SHOW--></td>
            <td align="center"><a href="javascript:showEditSpecialNo(<!--SVLT.VAR:NO-->);" ><img src="${RESOURCE}/eng/images/14_webservice_edit.gif" border="0"  vspace="4"></a>
            <input type="hidden" size="15" maxlength="10" name="specialNo"  value="<!--SVLT.VAR:SUBR_NUMB-->" disabled></td>
          </tr>
          <!--SVLT.END:EXIST_SPECIAL_NO_LIST-->
        
          <!--SVLT.LOOP:NEW_SPECIAL_NO_LIST-->
          <tr class="textnormal" bgcolor="#FAF9F4">
            <td align="center"><!--SVLT.VAR:NO--></td>
            <td>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;   08-xxxx-xxxx</td>
            <td align="center"><a href="javascript:showAddSpecialNo(<!--SVLT.VAR:NO-->);" ><img src="${RESOURCE}/eng/images/14_webservice_add.gif" border="0" vspace="4"></a>
            <input type="hidden" size="15" maxlength="10" name="specialNo"  value=""  disabled></td>
          </tr>
          <!--SVLT.END:NEW_SPECIAL_NO_LIST-->
        </table>
         
        <table Id="tbShowDTACFlagOnly" name="tbShowDTACFlagOnly"  width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="display : none;">
            <tr><TD>&nbsp;</TD></tr>
            <!--SVLT.LOOP:DTAC_ONLY_FLAG-->
            <tr><TD><span class="textnormalred">**You can select special number from DTAC number only.</span></TD></tr>
            <!--SVLT.END:DTAC_ONLY_FLAG-->
        </table>
            
        <table Id="tbEditFee" name="tbEditFee"  width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="display : none;">
            <!--SVLT.LOOP:SHOW_FREE-->
            <tr><TD><span class="textnormalred">Changing special number fee is <!--SVLT.VAR:FEE_AMN--> baht / special number.</span></TD></tr>
            <!--SVLT.END:SHOW_FREE-->
        </table>
        <table Id="tbAddFee" name="tbAddFee"  width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="display : none;">
            <!--SVLT.LOOP:SHOW_FREE-->
            <tr><TD><span class="textnormalred">Adding special number fee is <!--SVLT.VAR:FEE_AMN--> baht / special number.เน</span></TD></tr>
            <!--SVLT.END:SHOW_FREE-->
        </table>
        <table Id="tbEditSpecialNo" name="tbEditSpecialNo" width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="display : none;">
            <tr><TD align="left" width="55%">&nbsp;</TD><TD>&nbsp;</TD></tr>
            <tr><TD><span class="textnormal">Please fill in your special phone number :</span></TD>  
            <TD><span class="textnormal"><input type="text" size="15" maxlength="10" name="txtEditSpecialNo" value="">
            <input type="hidden" name="selectedRow"  value="" size="3"></span></TD></tr>
            <tr><TD>&nbsp;</TD><TD>&nbsp;</TD></tr>
        </table>
        <table  Id="tbEditSpecialNoBtn" name="tbEditSpecialNoBtn"  width="90%"  border="0"  align="center"   style="display : none;">
            <tr ><TD align="middle">
            <a href="javascript:editSpecialNo();"><img alt="Change" src="${RESOURCE}/eng/images/14_webservice_edit.gif"  border="0"></a>
            <a href="javascript:cancelAdd()"><img alt="Cancel" src="${RESOURCE}/eng/images/14_webservice_cancel.gif"  border="0"></a>
            </TD>
            </tr>
        </table>
        <table  Id="tbAddSpecialNoBtn" name="tbAddSpecialNoBtn"  width="90%"  border="0"  align="center"   style="display : none;">
            <tr ><TD align="middle">
            <a href="javascript:addSpecialNo();"><img alt="Add" src="${RESOURCE}/eng/images/14_webservice_add.gif"  border="0"></a>
            <a href="javascript:cancelAdd()"><img alt="Cancel" src="${RESOURCE}/eng/images/14_webservice_cancel.gif"  border="0"></a>
            </TD>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>

  <!--SVLT.VAR:CONF_BOTTOM-->
</table>


<br>
<br>
<!--SVLT.LOOP:DTAC_ONLY_FLAG-->
<script language="javascript">
   document.getElementById("tbEditSpecialNo").rows[1].cells[0].innerHTML = "<span class='textnormal'>Please fill in your special phone number :</span>";
</script>
<!--SVLT.END:DTAC_ONLY_FLAG-->
   
<!--SVLT.LOOP:ERROR_BOX-->
<script language="javascript">
   if("ERROR_MAXIMUM_IS_ZERO"== "<!--SVLT.VAR:MESSAGE-->" ||       
      "ERROR_ACCESS_DENY"=="<!--SVLT.VAR:MESSAGE-->"){                   
      informationDialog(ERROR_NOT_HAVE_AUTHORIZED, "" ,"", "gotoWelcomePage();" );      
   }else if("ERROR_DTAC_NUMB_ONLY"== "<!--SVLT.VAR:MESSAGE-->"){ 
      informationDialog(ERROR_DTAC_NUMB_ONLY, "408" ,"", "" );
   }else if("INVALID_SUBR_NUMB"=="<!--SVLT.VAR:MESSAGE-->"){
      //showAddSpecialNo(1);
      informationDialog(INVALID_SUBR_NUMB, "" ,"", "" );      
   }else if("ERROR_CREDIT_INADEQUATE"=="<!--SVLT.VAR:MESSAGE-->"){
      informationDialog(ERROR_CREDIT_INADEQUATE, "" ,"", "" );
   }else if("ERROR_IS_BLOCK_PACK_CATG"=="<!--SVLT.VAR:MESSAGE-->"){                   
      informationDialog(ERROR_IS_BLOCK_PACK_CATG, "450" ,"", "gotoWelcomePage();" ); 
   }else if("ERROR_IS_BLOCK_PACK_CATG_44"=="<!--SVLT.VAR:MESSAGE-->"){                   
      informationDialog(ERROR_IS_BLOCK_PACK_CATG_44, "450" ,"", "gotoWelcomePage();" ); 
   }else if("ERROR_IS_BLOCK_PACK_CATG_78"=="<!--SVLT.VAR:MESSAGE-->" || "ERROR_IS_BLOCK_PACK_CATG_79"=="<!--SVLT.VAR:MESSAGE-->"){                   
      informationDialog(ERROR_IS_BLOCK_PACK_CATG_78, "450" ,"", "gotoWelcomePage();" ); 
   }
</script>
<!--SVLT.END:ERROR_BOX-->
</form>
						
						
						
						</div>
						
						
						</td>
                 	</tr>
              	</table>                
                <!--เนื้อหาสิ้นสุดที่นี่-->
                
            </div>
            <div class="content-bottom"></div>
        </div>
    </div>
</div>
<div id="footer">
<img src="${RESOURCE}/eng/images/copy_right.jpg" />
<a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/eng/images/dtact_logo.jpg" border="0" /></a>
<a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/eng/images/virus_icon.jpg" border="0" /></a>
</div>
</body>
</html>
